import { createSelector } from "@ngrx/store";
import { MapState } from "../reducers";
import { FeatureState } from "../reducers/feature.reducer";
import { getMapState } from "./map.selector";


export const getFeatureState = createSelector(getMapState, (state: MapState) => state.feature);

export const getFeatureSelected = createSelector(getFeatureState, (state: FeatureState) => state.selected);

export const getFeatureDeselected = createSelector(getFeatureState, (state: FeatureState) => state.deselected);
